//
//  YYTempViewcontroller.swift
//  YYWeibo
//
//  Created by strongwallyi on 15/12/27.
//  Copyright © 2015年 strongwallyi. All rights reserved.
//

import UIKit

class YYTempViewcontroller: UIViewController {
    
    override func viewDidLoad(){
    
        super.viewDidLoad()
        view.backgroundColor = UIColor.whiteColor()
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: "push")
        
        title = "当前是第\(navigationController?.childViewControllers.count ?? 0)级控制器"
    }
    
    @objc private func push(){
    
        let vc = YYTempViewcontroller()
        navigationController?.pushViewController(vc, animated: true)
    }

}
